package com.schoolCommunity.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author YTH
 * @since 2020-10-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ForIndex implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 首页ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 图片的路径
     */
    private String pictureUrl;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 删除状态，0未删除，1已删除
     */
    @TableLogic
    private Integer deleted;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 指向上个版本
     */
    private Long lastVersion;

    /**
     * 地点名称
     */
    private String placeName;

    /**
     * 写简介的作者
     */
    private String author;

    /**
     * 地点简介
     */
    private String described;

    /**
     * 点赞数量
     */
    private Integer loves;


}
